home *** CD-ROM | disk | FTP | other *** search
/ Aminet 6 / Aminet 6 - June 1995.iso / Aminet / gfx / 3d / irit50src.lha / irit5 / include / getarg.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-03-08  |  1.1 KB  |  37 lines

  1. /***************************************************************************
  2. * Error    numbers    as returned by GAGetArg    routine:               *
  3. *                                       *
  4. *                     Gershon Elber         Mar 88       *
  5. ****************************************************************************
  6. * History:                                   *
  7. * 11 Mar 88 - Version 1.0 by Gershon Elber.                   *
  8. ***************************************************************************/
  9.  
  10. #ifndef GET_ARG_H
  11. #define GET_ARG_H
  12.  
  13. #define    CMD_ERR_NotAnOpt   1                   /* None Option found. */
  14. #define    CMD_ERR_NoSuchOpt  2              /* Undefined Option Found. */
  15. #define    CMD_ERR_WildEmpty  3             /* Empty input for !*? seq. */
  16. #define    CMD_ERR_NumRead       4            /* Failed on reading number. */
  17. #define    CMD_ERR_AllSatis   5           /* Fail to satisfy (must-'!') option. */
  18.  
  19. #if defined(__cplusplus) || defined(c_plusplus)
  20. extern "C" {
  21. #endif
  22.  
  23. #ifdef USE_VARARGS
  24. int GAGetArgs(int va_alist, ...);
  25. #else
  26. int GAGetArgs(int argc, ...);
  27. #endif /* USE_VARARGS */
  28.  
  29. void GAPrintErrMsg(int Error);
  30. void GAPrintHowTo(char *CtrlStr);
  31.  
  32. #if defined(__cplusplus) || defined(c_plusplus)
  33. }
  34. #endif
  35.  
  36. #endif /* GET_ARG_H */
  37.